Skip to content

frontend changes#1224

Merged
duckduckhero merged 2 commits intomainfrom
onboarding-hotfix-1
Jul 27, 2025
Merged

frontend changes#1224
duckduckhero merged 2 commits intomainfrom
onboarding-hotfix-1

Conversation

@duckduckhero
Copy link
Contributor

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 27, 2025

📝 Walkthrough

Walkthrough

The polling interval for checking microphone and system audio permissions was reduced from 3000ms to 1000ms. After a successful permission request, the status refetch is now delayed by 3000ms to allow system updates. A new UI message informs users when permission is granted but not yet reflected in the status.

Changes

Cohort / Files Change Summary
apps/desktop/src/components/welcome-modal/audio-permissions-view.tsx Reduced polling interval for permission checks, delayed refetch after granting permission, and added a conditional UI message for pending permission status updates.
apps/desktop/src/locales/en/messages.po Updated source code reference line numbers for multiple English translation entries and added a new message ID for the permission granted notification.
apps/desktop/src/locales/ko/messages.po Updated source code reference line numbers for multiple Korean translation entries and added a new message ID for the permission granted notification.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch onboarding-hotfix-1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (4)
apps/desktop/src/components/welcome-modal/audio-permissions-view.tsx (4)

101-101: Remove the unnecessary comment.

The inline comment "← Faster polling" violates the coding guidelines which specify minimal comments about "why", not "what". The code change is self-explanatory.

-    refetchInterval: 1000,  // ← Faster polling
+    refetchInterval: 1000,

112-117: Refine the comment and consider cleanup.

The comment should focus on "why" rather than "what" per coding guidelines. Also consider that the setTimeout could execute after component unmount.

     onSuccess: () => {
-      // Give TCC time to update (2-5 seconds)
+      // TCC framework needs time to propagate permission changes
       setTimeout(() => {
         micPermissionStatus.refetch();
       }, 3000);
     },

Consider storing the timeout ID and clearing it in a cleanup function if component unmounting is a concern.


123-128: Refine the comment and consider cleanup.

Same issues as the microphone permission handler - the comment should focus on "why" rather than "what" per coding guidelines.

     onSuccess: () => {
-      // Give TCC time to update (2-5 seconds)
+      // TCC framework needs time to propagate permission changes
       setTimeout(() => {
         systemAudioPermissionStatus.refetch();
       }, 3000);
     },

177-181: Consider adding similar message for system audio permission.

The UI feedback is helpful for user experience, but it only covers microphone permission. Users might benefit from similar feedback when system audio permission is granted but not yet reflected in the status.

Consider adding a similar message for system audio permission:

       {micPermission.isSuccess && !micPermissionStatus.data && (
         <p className="text-xs text-amber-600 text-center mt-2">
           <Trans>Permission granted! Detecting changes...</Trans>
         </p>
       )}
+      {capturePermission.isSuccess && !systemAudioPermissionStatus.data && (
+        <p className="text-xs text-amber-600 text-center mt-2">
+          <Trans>System audio permission granted! Detecting changes...</Trans>
+        </p>
+      )}
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 82600e9 and b60431d.

📒 Files selected for processing (1)
  • apps/desktop/src/components/welcome-modal/audio-permissions-view.tsx (2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{js,ts,tsx,rs}

⚙️ CodeRabbit Configuration File

**/*.{js,ts,tsx,rs}: 1. No error handling.
2. No unused imports, variables, or functions.
3. For comments, keep it minimal. It should be about "Why", not "What".

Files:

  • apps/desktop/src/components/welcome-modal/audio-permissions-view.tsx

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
apps/desktop/src/locales/ko/messages.po (1)

1068-1070: Missing Korean translation for new message

A new translation entry has been added but the Korean translation (msgstr) is empty. Korean users will see the English text or potentially experience broken UI until this is translated.

Consider providing the Korean translation or ensuring this gets flagged for the localization team.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b60431d and 67709f3.

📒 Files selected for processing (3)
  • apps/desktop/src/components/welcome-modal/audio-permissions-view.tsx (2 hunks)
  • apps/desktop/src/locales/en/messages.po (7 hunks)
  • apps/desktop/src/locales/ko/messages.po (7 hunks)
✅ Files skipped from review due to trivial changes (1)
  • apps/desktop/src/locales/en/messages.po
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/desktop/src/components/welcome-modal/audio-permissions-view.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: ci (windows, windows-latest)
  • GitHub Check: ci (macos, macos-latest)
🔇 Additional comments (5)
apps/desktop/src/locales/ko/messages.po (5)

398-398: LGTM - Standard localization reference update

The source code reference line number has been properly updated to reflect changes in the underlying source file.


553-553: LGTM - Consistent reference update

The line reference update is consistent with other changes in this file and properly reflects the source code modifications.


777-777: LGTM - Reference update maintains consistency

The source line reference has been appropriately updated while preserving the original message content.


781-781: LGTM - Systematic reference update

The line reference has been updated systematically, maintaining the integrity of the translation entry.


914-914: LGTM - Remaining reference updates are consistent

All remaining line reference updates follow the established pattern and properly maintain the localization file structure.

Also applies to: 1117-1118, 1268-1268

@duckduckhero duckduckhero merged commit f545beb into main Jul 27, 2025
7 checks passed
This was referenced Jul 27, 2025
@ComputelessComputer ComputelessComputer deleted the onboarding-hotfix-1 branch December 14, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments